package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.YcTaskScoreMapper;
import com.ruoyi.domain.YcTaskScore;
import com.ruoyi.service.IYcTaskScoreService;
import com.ruoyi.common.core.text.Convert;

/**
 * 课题字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-09-08
 */
@Service
public class YcTaskScoreServiceImpl implements IYcTaskScoreService 
{
    @Autowired
    private YcTaskScoreMapper ycTaskScoreMapper;

    /**
     * 查询课题字典
     * 
     * @param id 课题字典ID
     * @return 课题字典
     */
    @Override
    public YcTaskScore selectYcTaskScoreById(Long id)
    {
        return ycTaskScoreMapper.selectYcTaskScoreById(id);
    }

    /**
     * 查询课题字典列表
     * 
     * @param ycTaskScore 课题字典
     * @return 课题字典
     */
    @Override
    public List<YcTaskScore> selectYcTaskScoreList(YcTaskScore ycTaskScore)
    {
        return ycTaskScoreMapper.selectYcTaskScoreList(ycTaskScore);
    }

    /**
     * 新增课题字典
     * 
     * @param ycTaskScore 课题字典
     * @return 结果
     */
    @Override
    public int insertYcTaskScore(YcTaskScore ycTaskScore)
    {
        return ycTaskScoreMapper.insertYcTaskScore(ycTaskScore);
    }

    /**
     * 修改课题字典
     * 
     * @param ycTaskScore 课题字典
     * @return 结果
     */
    @Override
    public int updateYcTaskScore(YcTaskScore ycTaskScore)
    {
        return ycTaskScoreMapper.updateYcTaskScore(ycTaskScore);
    }

    /**
     * 删除课题字典对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteYcTaskScoreByIds(String ids)
    {
        return ycTaskScoreMapper.deleteYcTaskScoreByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除课题字典信息
     * 
     * @param id 课题字典ID
     * @return 结果
     */
    @Override
    public int deleteYcTaskScoreById(Long id)
    {
        return ycTaskScoreMapper.deleteYcTaskScoreById(id);
    }

    @Override
    public YcTaskScore selectYcTaskScoreByLevel(String projectLevel) {
        return ycTaskScoreMapper.selectYcTaskScoreByLevel(projectLevel);
    }
}
